#ifndef DATA_IMPORT_DIALOG_H
#define DATA_IMPORT_DIALOG_H

#include <QList>
#include <QLabel>
#include <QString>
#include <QDialog>
#include <QGroupBox>
#include <QLineEdit>
#include <QComboBox>
#include <QFileDialog>
#include <QPushButton>
#include <QGridLayout>
#include <QDialogButtonBox>

#include "individual.h"
#include "file_loader.h"
#include "number_edit.h"

class DataImportDialog : public QDialog
{
Q_OBJECT
public:
    explicit DataImportDialog(QWidget *parent = 0);

    inline QList<Individual*> getIndividuals()  { return _theIndividuals; }
    inline int count() const                    { return _theIndividuals.count(); }
    inline QString getPath() const              { return _filePath; }



private:
    QString _filePath;
    QList<Individual*> _theIndividuals;
    QLabel *_pathLabel;
    NumberEdit *_numStrataEdit;
    NumberEdit *_numSpatialEdit;
    NumberEdit *_numExternalEdit;
    NumberEdit *_numLociEdit;
    QComboBox *_genotypeFormats;


private slots:
    void slotLoadFile();
};

#endif // DATA_IMPORT_DIALOG_H
